import 'package:flutter/material.dart';
import 'package:Lter/model/lter.dart';

class LterServerCard extends StatelessWidget {
  LterServerCard({Key key, this.mLterServerInfo}) : super(key: key);

  LterServerInfo mLterServerInfo;
  static const optionStyle = TextStyle(
      fontFamily: 'Roboto',
      //letterSpacing: 0.5,
      fontSize: 14.0,
      color: Colors.white);

  @override
  Widget build(BuildContext context) {
    return Container(
        color: Colors.indigo,
        child: Column(
          children: <Widget>[
            SizedBox(
              height: 10.0,
            ),
            Row(
              mainAxisAlignment: MainAxisAlignment.spaceBetween,
              children: <Widget>[
                Text(
                  "\t\t\tLter Server",
                  style: TextStyle(
                      fontWeight: FontWeight.w800,
                      fontFamily: 'Roboto',
                      //letterSpacing: 0.5,
                      fontSize: 18.0,
                      color: Colors.white),
                ),
                Text(""),
              ],
            ),
            Divider(
              height: 10.0,
              indent: 0.0,
              color: Colors.white,
            ),
            SizedBox(
              height: 5.0,
            ),
            Row(
              mainAxisAlignment: MainAxisAlignment.spaceBetween,
              children: <Widget>[
                Text(
                  "\t\t\t\tCPU Num",
                  style: optionStyle,
                ),
                Text(
                  mLterServerInfo.CpuNum.toString() + "\t\t\t\t",
                  style: optionStyle,
                ),
              ],
            ),
            SizedBox(
              height: 5.0,
            ),
            Row(
              mainAxisAlignment: MainAxisAlignment.spaceBetween,
              children: <Widget>[
                Text(
                  "\t\t\t\tCPU Use",
                  style: optionStyle,
                ),
                Text(
                  mLterServerInfo.CpuUse.toString() + "%\t\t\t\t",
                  style: optionStyle,
                ),
              ],
            ),
            SizedBox(
              height: 5.0,
            ),
            Row(
              mainAxisAlignment: MainAxisAlignment.spaceBetween,
              children: <Widget>[
                Text(
                  "\t\t\t\tMemory Use",
                  style: optionStyle,
                ),
                Text(
                  mLterServerInfo.MemUse.toString() + "%\t\t\t\t",
                  style: optionStyle,
                ),
              ],
            ),
            SizedBox(
              height: 5.0,
            ),
            Row(
              mainAxisAlignment: MainAxisAlignment.spaceBetween,
              children: <Widget>[
                Text(
                  "\t\t\t\tNet Up",
                  style: optionStyle,
                ),
                Text(
                  mLterServerInfo.NetUp.toString() + "Kb/s\t\t\t\t",
                  style: optionStyle,
                ),
              ],
            ),
            SizedBox(
              height: 5.0,
            ),
            Row(
              mainAxisAlignment: MainAxisAlignment.spaceBetween,
              children: <Widget>[
                Text(
                  "\t\t\t\tNet Down",
                  style: optionStyle,
                ),
                Text(
                  mLterServerInfo.NetDown.toString() + "Kb/s\t\t\t\t",
                  style: optionStyle,
                ),
              ],
            ),
            SizedBox(
              height: 10.0,
            ),
          ],
        ));
  }
}
